package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 新闻评论点赞表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-07-13
 */
@TableName("wz_news_comment_like")
public class WzNewsCommentLike extends Model<WzNewsCommentLike> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 新闻id
     */
    @TableField("adv_id")
    private String advId;
    /**
     * 用户评论id
     */
    @TableField("adv_comment_id")
    private String advCommentId;
    /**
     * 用户编号
     */
    @TableField("user_code")
    private String userCode;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getAdvId() {
        return advId;
    }

    public void setAdvId(String advId) {
        this.advId = advId;
    }

    public String getAdvCommentId() {
        return advCommentId;
    }

    public void setAdvCommentId(String advCommentId) {
        this.advCommentId = advCommentId;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "WzNewsCommentLike{" +
        "id=" + id +
        ", advId=" + advId +
        ", advCommentId=" + advCommentId +
        ", userCode=" + userCode +
        ", createTime=" + createTime +
        "}";
    }
}
